﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace _220105BookSys.api.Tools
{
    public class Pagination
    {
        public int PageIndex { get; set; } = 0;

        private int _PageSize;
        //在Set访问器中设置对PageSize的限制：不可以大于50
        public int PageSize { 
            get { 
                return _PageSize; 
            } 
            set {
                _PageSize= value > 50 ?  50 :  value;
            } 
        }
        public int Total { get; set; }

        public dynamic Data { get; set; }
    }
}
